package com.srit.vgt.dao;

import com.srit.vgt.common.parent.ParentDao;
import com.srit.vgt.entity.EcrWeigh;
import com.srit.vgt.entity.MarketTran;
import io.swagger.models.auth.In;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * @author Yyming
 * @version 10.0
 * Created by Yyming on 2021/1/20
 */
public interface EcrWeighDao extends ParentDao<EcrWeigh, EcrWeigh.EcrWeighKey> {

    @Query(nativeQuery = true, value = "select * from ecr_weigh where ecrId = ?3 and date between ?1 and ?2")
    List<EcrWeigh> findTran(String data1, String data2, String ecrId);
}
